#include <iostream>
#include <string>
#include <list>

using namespace std;

int main(int argc, char const *argv[])
{
    list<int> val_list_1;

    cout << "val_list_1.size() = " << val_list_1.size() << endl;

    list<int> val_list_2(10);

    cout << "val_list_1.size() = " << val_list_2.size() << endl;

    list<int> val_list_3(10);

    cout << "val_list_1.size() = " << val_list_2.size() << endl;

    int j = 10;
    for (auto i = val_list_3.begin(); i != val_list_3.end(); i++)
    {
        *i = j;
        j += 10; 
    }


    for (auto i = val_list_3.begin(); i != val_list_3.end(); i++)
    {
        cout << *i << endl;
    }
    auto it_1 = val_list_3.begin();
    auto it_2 = val_list_3.begin();

    advance(it_1 , 6);
    advance(it_2 , 9);

    val_list_3.erase(it_1  , it_2);

    for (auto i = val_list_3.begin(); i != val_list_3.end(); i++)
    {
        cout << *i << endl;
    }


    return 0;
}
